<template>
  <div class="container">
    <van-nav-bar
        title="支付超时"
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
    />
    <h1 style="text-align: center;">支付超时！！！5秒后跳转到首页
      <el-link type="primary" @click="onClickLeft">立即跳转</el-link>
    </h1>
  </div>
</template>
<script>
export default {
  data() {
    return {}
  },
  methods: {
    onClickLeft() {
      this.$router.push('/shouye')
    },
  },
  created() {
    //倒计时
    //睡眠5秒
    setTimeout(() => {
      this.$router.push('/shouye')
    }, 5000)
  }
}
</script>
